package com.vpen.utils;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.security.KeyPair;
import java.security.cert.X509Certificate;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2024/11/17 12:46
 */
@Data
@Accessors(chain = true)
public class CertificateHolder implements Serializable {
    private X509Certificate certificate;
    private KeyPair keyPair;

    public static CertificateHolder build(X509Certificate certificate,KeyPair keyPair){
        return new CertificateHolder().setCertificate(certificate).setKeyPair(keyPair);
    }
}
